<%@page import="com.jfinal.kit.PropKit"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="cn.com.dashihui.web.common.OrderCode" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<jsp:include page="../../include/header.jsp"></jsp:include>
 <style type="text/css">
			table td{
			text-align: center;
			}
		 	table th{
			text-align: center;
		 	}
		</style>

	<div id="wrapper">
		<div style="width: 100%;height: 20%;text-align: center;">
				<h1 class="page-header">余额转换</h1>
		</div>
	<form id="login" action="${BASE_PATH}/change/money/login" method="post" class="form-horizontal" enctype="form-data">
	
		<div class="form-group" style="margin-top: 180px;">
			<label class="col-sm-3 control-label">请输入您的管理密码</label>
			<div class="col-sm-6">
				<input type="password" name="passWord" id="passWord" class="form-control" placeholder="请输入您的资金密码，注意密码安全" required autocomplete="off" onkeyup="(this.v3=function(){this.value=this.value.replace(/[^\w\.\/]/ig,'');}).call(this)" onblur="this.v3();">
				<span id="mess"></span>
			</div>
		</div>
	</form>
			
			<div class="row" style="margin-top: 80px;">
			<div class="col-lg-8"><button class="btn btn-primary col-sm-5 pull-right" onclick="login();" >登录</button></div>	
		</div>
	</div>
<jsp:include page="../../include/javascripts.jsp"></jsp:include>
<script type="text/javascript">
function login(){
	$("#login").submit();
}
$(function(){
	//初始化表单验证

	$("#login").validate({
		submitHandler:function(form){
			$(form).ajaxSubmit({
				success:function(data){
					switch(data.flag){
						case 1:
							Kit.alert("密码错误，请重新登录");return;
						case 2:
							Kit.alert("密码错误");return;
						case -1:
							Kit.alert("网络繁忙");return;
						case 0:
							window.location.href="${BASE_PATH}/change/money/detail";
							return;
					}
				}
			});
		}
	});
});

</script> 

